package com.jumi.microservice.controller.base;

import com.jumi.microservice.common.base.dto.BasePageResponse;
import com.jumi.microservice.common.utils.ResultGenerator;
import com.jumi.microservice.domain.LogDetailVO;
import com.jumi.microservice.domain.OperateLogQuery;
import com.jumi.microservice.service.LogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.stream.Collectors;

/**
 * - - - - - - - - - - - - - - -
 *
 * @author liuz
 * @date 2020/7/31 16:56
 * ToDoSomeThing
 * - - - - - - - - - - - - - - -
 */
@RestController
public class BaseController {

    @Autowired
    private LogService logService;

    @ApiOperation(value = "模块操作日志查询", notes = "模块操作日志查询分页列表")
    @GetMapping("/listLog")
    public BasePageResponse listLog(
            OperateLogQuery logQuery) {
        return logService.listOperateLogs(logQuery);
    }
}
